package com.cskaoyan.service.promoteservice;


import com.cskaoyan.bo.promoteBO.CouponCreateBO;
import com.cskaoyan.bo.promoteBO.CouponUpdateBO;
import com.cskaoyan.vo.promotevo.*;

import java.text.ParseException;

/**
 * @Author: feisl
 * @Date: 2021/5/10 1:15
 */
public interface CouponService {
    CouponListVO queryCouponAll(Integer page, Integer limit, String name,Short type,Short status,String sort, String order);


    CouponCreateVO insert(CouponCreateBO couponCreateBO) throws ParseException;

    CouponUpdateVO update(CouponUpdateBO coupon) throws ParseException;

    CouponReadVO read(Integer id);

    void delete(Integer id);

    ListuserVO listuser(Integer page, Integer limit, Integer couponId, Integer userId, Short status, String sort, String order);
}
